package com.mhc.haval;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.feign.EnableFeignClients;

@SpringBootApplication(scanBasePackages = {"com.mhc"})
//扫描时不指定自身api所在的包，就不会把@feignclient注解声明的api加入到url映射路径中，即内部调用实现是不需要也不能通过feign的
@EnableFeignClients(basePackages = {"com.mhc.suzuki"})
@EnableDiscoveryClient
public class HavalWebApplication {

    public static void main(String[] args) {
        SpringApplication.run(HavalWebApplication.class, args);
    }

}
